package com.xlhj.boot.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xlhj.boot.entity.SysLogInfo;
import com.xlhj.boot.mapper.SysLogInfoMapper;
import com.xlhj.boot.service.SysLogInfoService;
import org.springframework.stereotype.Service;

/**
 * @Author: caijliu
 * @Date: 08/09/2021 10:36
 * @Description TODO
 * @Vsersion: 0.0.1
 */
@Service
public class SysLogInfoServiceImpl extends ServiceImpl<SysLogInfoMapper, SysLogInfo> implements SysLogInfoService {

    @Override
    public SysLogInfo selectLogInfoByKey(String rocketmqKeys) {
        LambdaQueryWrapper<SysLogInfo> queryWrapper = new LambdaQueryWrapper<>();
        queryWrapper.eq(SysLogInfo::getTxId, rocketmqKeys);
        SysLogInfo logInfo = this.getOne(queryWrapper);
        return logInfo;
    }
}
